package main

import (
	"flag"
)

func main() {
	var scePath string
	var dstPath string
	var output string
	flag.StringVar(&scePath, "s", "old.fil", "源文件路径")
	flag.StringVar(&dstPath, "d", "1.fil", "目标文件路径")
	flag.StringVar(&output, "o", "result.txt", "输出结果")
	flag.Parse()
	checkeds := Check(scePath, dstPath)
	w := NewDefaultWrite(output)
	//w := NewStdoutWrite()
	if w != nil {
		w.BuildMessage(checkeds)
		w.WriteToTxt()
		//w.WriteToHtml()
	}

}
